import { Routes } from '@angular/router';
import {CabinetComponent} from "./components/cabinet/cabinet.component";
import {BaseComponent} from "./components/base/base.component";
import {BaseV1Component} from "./components/base-v1/base-v1.component";
import {AuthGuard} from "./guard/auth.guard";
import {EmergencyCabinetComponent} from "./components/emergency-cabinet/emergency-cabinet.component";
import {DaDataComponent} from "./components/da-data/da-data.component";

export const routes: Routes = [
  {path: '', component: BaseComponent},
  {path: 'v1', component: BaseV1Component },
  {path: 'emg-cabinet', component: EmergencyCabinetComponent},
  {path: 'cabinet', component: CabinetComponent, canActivate: [AuthGuard()]},
  {path: 'da', component: DaDataComponent},
];
